package com.meilai.project.mapper.business.customer;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.meilai.project.entity.business.customer.CustomerApplyFollowRecord;
import com.meilai.project.vo.business.customer.CheckPageCustomerVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xhy
 * @since 2022-09-09
 */
@Mapper
public interface CustomerApplyFollowRecordMapper extends BaseMapper<CustomerApplyFollowRecord> {

    /**
     * 审批列表分页
     *
     * @param page
     * @param name
     * @param industry_id
     * @param apply_user_id
     * @param type
     * @param boss_ids
     * @return
     */
    List<CheckPageCustomerVO> selectCheckRecordPage(@Param("page") Page<CheckPageCustomerVO> page,
                                                    @Param("name") String name,
                                                    @Param("industry_id") Long industry_id,
                                                    @Param("apply_user_id") Long apply_user_id,
                                                    @Param("type") Integer type,
                                                    @Param("boss_ids") List<Long> boss_ids,
                                                    @Param("status") Integer status);
}
